<div class="row">
<div class="col-12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="glyphicon glyphicon-align-justify"></i>									
			</span>
			<h5><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Thông tin ':'Thêm mới ').@strtolower($this->resource->RES_NAME);?></h5>
		</div>
		<div class="widget-content nopadding">
			<form method="post" action="<?php echo $this->url_edit . @$edit->{$this->{$this->model}->primaryKey}; ?>"  enctype="multipart/form-data" class="form-horizontal">
				<?php echo $this->atheme->group_input2('edit[ADM_ACCOUNT]', 'User Account', '', 'span6 ', @$edit->ADM_ACCOUNT, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[ADM_NAME]', 'Tên thành viên', '', 'span6 ', @$edit->ADM_NAME, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[ADM_EMAIL]', 'Email:', '', 'span6 ', @$edit->ADM_EMAIL, 'text', ''); ?>
				<?php echo $this->atheme->group_input2('edit[passwd_new1]', 'Password:', '', 'span6 ', '', 'password', ''); ?>
				
				<?php echo $this->atheme->group_select2('edit[ADM_GENDER]','Giới tính','','', array('1'=>'Nam','0'=>'Nữ'),@$edit->ADM_GENDER); ?>
				<?php echo $this->atheme->group_select2('edit[ADM_STATUS]','Trạng thái','','', array('1'=>'Sử dụng','0'=>'Khóa'),@$edit->ADM_STATUS); ?>
				<?php
				if ($this->permission->check("full", $this->{$this->model}->resCode) && @$edit->{$this->{$this->model}->primaryKey} > 0)
				{ ?>
				<div class="form-group"> 
					<div class="controls">
						<span class="help-block"><a class="btn btn-primary" href="<?php echo $this->url_index;?>/privileges/<?php echo @$edit->{$this->{$this->model}->primaryKey};?>">Phân quyền</a></span>
					</div>
				</div>
					
				<?php }
				?>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary btn-small"><?php echo ((@$edit->{$this->{$this->model}->primaryKey} > 0)?'Save':'Add');?></button> or <a class="text-danger" href="<?php echo $this->url_index;?>">Cancel</a>
				</div>
			</form>
		</div>
	</div>						
</div>
</div>